import request from '@/utils/request'
import qs from "qs";
// 查询申请指南维护列表
export function listGuide(query) {
  return request({
    url: '/system/guide/list',
    method: 'get',
    params: query
  })
}

// 查询申请指南维护详细
export function getGuide(guideId) {
  return request({
    url: '/system/guide/' + guideId,
    method: 'get'
  })
}

// 新增申请指南维护
export function addGuide(data) {
  return request({
    url: "/system/guide",
    method: "post",
    data: qs.stringify(data),
    headers: {
      "content-type": "application/x-www-form-urlencoded",
    },
  });
}

// 修改申请指南维护
export function updateGuide(data) {
  return request({
    url: "/system/guide",
    method: "put",
    data: qs.stringify(data),
    headers: {
      "content-type": "application/x-www-form-urlencoded",
    },
  });
}

// 删除申请指南维护
export function delGuide(guideId) {
  return request({
    url: '/system/guide/' + guideId,
    method: 'delete'
  })
}
